package com.drcoffee.drcoffeemall.service;

import com.drcoffee.drcoffeemall.entry.*;
import com.drcoffee.drcoffeemall.entry.erp.ErpOCC;
import com.drcoffee.drcoffeemall.entry.search.SearchUser;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.security.GeneralSecurityException;
import java.util.Map;

public interface UserService {

    /* 修改用户信息 */
    Map<String, Object> uploadUserFirm(User user);

    /* 添加邀请码 */
    Result addInvitation(InvitationCode invitationCode);

    public ResponseEntity<Object> getInvitationCodeData(@RequestBody Map<String, Object> paramMap);

    Result deleteInvitation(Integer id);

    Result getFirmAlterByN();

    Result setUserFirm(FirmAlter firmAlter);

    /* 注册海外 */
    Result signinOverseasUser(User user);

    Result getUserBySearch(Map<String, Object> val);

    Result getUserBySearchEN(Map<String, Object> val);

    Result setUserDiscount(String token, String account, Double one, Double two);

    Result getFeedbackByCn();
    Result getFeedbackByEn();

    Result outFeedback(Integer id);

    Result getByAccount(String account);

    ResponseEntity<Object> checkErpCode(Map<String, Object> paramMap);


    ResponseEntity<Object> getUserData(Map<String, Object> paramMap);


    int getCode(String company);
}
